// eslint-disable-next-line no-undef
const express = require('express')

// eslint-disable-next-line no-undef
const artcate_handler = require('../router_handler/artcate.js')

const router = express.Router()

router.get('/cates', artcate_handler.getArticleCates)
router.post('/addcates', artcate_handler.addArticleCates)
router.get('/deletecate/:id', artcate_handler.deleteCateById)
router.get('/cates/:id', artcate_handler.getArticleById)
router.post('/updatecate', artcate_handler.updateCateById)
// eslint-disable-next-line no-undef
module.exports = router
